package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import com.heima.model.wemedia.pojos.WmSensitive;
import com.heima.wemedia.mapper.WmSensitiveMapper;

import java.util.List;

public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * 敏感词分页查询
     * @param dto
     * @return
     */
    ResponseResult findList(WmSensitiveDto dto);

    /**
     * 敏感词新增
     */
    ResponseResult insert(WmSensitive wmSensitive);

    /**
     * 敏感词更新
     * @param wmSensitive
     * @return
     */
    ResponseResult updateSeneitive(WmSensitive wmSensitive);

    /**
     * 敏感词删除
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);
}
